package com.nifostasky.comic.common.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * minio 配置属性类
 */
@Data
@Component
@Primary
public class MinioProperties {
    /**
     * ip
     */
    @Value(value = "${minio.endpoint}")
    private String endpoint;

    /**
     * 端口
     */
    @Value(value = "${minio.port}")
    private Integer port;

    /**
     * 默认的桶名称
     */
    @Value(value = "${minio.default-bucket-name}")
    private String defaultBucketName;

    /**
     * 访问key
     */
    @Value(value = "${minio.access-key}")
    private String accessKey;

    /**
     * 密钥
     */
    @Value(value = "${minio.secret-key}")
    private String secretKey;
}
